<!-- 头部 start -->
<script>
    $(function () {
       $.get("findUserServlet",{},function (data) {
           //{uid:1,name:'李四'}
           var msg = "欢迎回来，"+data.name;
           $("#span_username").html(msg);
       }); 
    });

</script>

<header id="header">
        <!--<div class="top_banner" >
            <img src="images/HeadTou.png" alt="">
        </div>-->
        <div class="shortcut">
            <!-- 未登录状态  -->
            <div class="login_out">
                <a href="login.html">登录</a>
                <a href="register.html">注册</a>
            </div>
            <!-- 登录状态  -->
            <div class="login">
            	<div><span id="span_username"></span></div>
                <!--<a href="myfavorite.html" class="collection">我的收藏</a>-->
                <a href="javascript:location.href='exitServlet';">退出</a>
            </div>
        </div>

    </header>
    <!-- 头部 end -->
     <!-- 首页导航 -->
<div>
    <ul style="margin: -30px auto" class="nav nav-pills">
        <li role="presentation" class="active"><a href="index.html">首页</a></li>
        <li role="presentation" class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
                蔬果类 <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
                <li role="presentation"><a href="Fruit&Vegetable.html">浏览&添加</a></li>
                <li role="presentation"><a href="modify_F&V.html">产品修改</a></li>
                <li role="presentation"><a href="deF&V.html">产品删除</a></li>
            </ul>
        </li>
        <li role="presentation" class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
                水产类 <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
                <li role="presentation"><a href="Fruit&A.html">浏览&添加</a></li>
                <li role="presentation"><a href="modify_F&A.html">产品修改</a></li>
                <li role="presentation"><a href="deF&A.html">产品删除</a></li>
            </ul>
        </li>
        <li role="presentation" class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
                鲜肉类 <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
                <li role="presentation"><a href="Fruit&Meat.html">浏览&添加</a></li>
                <li role="presentation"><a href="modify_F&M.html">产品修改</a></li>
                <li role="presentation"><a href="defm.html">产品删除</a></li>
            </ul>
        </li>
    </ul>
</div>


  <div style="margin-top: 85px" class="navitem">
    <ul class="nav"></ul>
</div>
    